package com.tensquare.article.dao;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Author: Mr.Liu
 * @Description:
 * @Date: Created in 20:12 2020/5/21
 */
public interface CommentDao extends MongoRepository<Comment,String> {

    /*
    * 根据文章ID  查询评论列表
    * */
    public List<Comment> findByArticleid(String articleid);
}
